package com.rd.student.jike.class2.xuezhixin.day0802;

public class Lady {
    String name;
    Animal pet;

    public Lady(String name, Animal pet) {
        this.name = name;
        this.pet = pet;
    }

    public String myPetEnjoy() {
        return pet.enjoy();
    }

    @Override
    public String toString() {
        return "创建了一个" + name +  "，养了一只" + pet.getName() + "," + myPetEnjoy();
    }
}
